<extend name="Public/base" />
<block name="style">
    <link href="__STATIC__/iCheck/skins/flat/green.css" rel="stylesheet">
</block>
<block name="body">

    <div class="right_col" role="main">
        <div class="">



            <div class="page-title">
                <div class="title_left">
                    <h3>{$meta_title} <small>Some examples to get you started</small></h3>
                </div>

                <div class="title_right">
                    <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search for...">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="button">Go!</button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>





            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>创建菜单 <small>Create menu</small></h2>

                        <ul class="nav navbar-right panel_toolbox">
                            <li class="">
                                <a href="{:U('Users/add',array('pid'=>$pid))}"><button type="button" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;添加</button></a>
                            </li>  <li class="">
                                <a href="{:U('Users/delAll',array('pid'=>$pid))}" class='del_common_all'><button type="button" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp;删除</button></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content">

                        <form class="ids">
                            <div class="table-responsive">
                                <table class="table table-striped jambo_table bulk_action">
                                    <thead>
                                        <tr class="headings">
                                            <th>
                                                <input type="checkbox" id="check-all" class="flat">
                                            </th>


                                            <th class="column-title">UID</th>
                                            <th class="column-title">昵称</th>
                                            <th class="column-title">积分</th>
                                            <th class="column-title">登录次数</th>
                                            <th class="column-title">最后登录时间</th>
                                            <th class="column-title">最后登录IP</th>
                                            <th class="column-title">状态</th>
                                            <th class="column-title">操作</th>




                                            </th>
                                            <th class="bulk-actions" colspan="9">
                                                <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
                                            </th>
                                        </tr>
                                    </thead>

                                    <tbody>

                                    <volist name='_list' id='vo'>  
                                        <tr class="even pointer">
                                              <neq name="vo.uid" value='1'>
                                            <td class="a-center ">
                                                <input type="checkbox" class="ids flat"  name="id[]" value='{$vo.id}'>
                                            </td>
                                             <else />
                                             <td>*</td>
                                       </neq>
                                            <td>{$vo.uid} </td>
                                            <td>{$vo.nickname}-{$is_root}</td>
                                            <td>{$vo.score}</td>
                                            <td>{$vo.login}</td>
                                            <td><span>{$vo.last_login_time|time_format}</span></td>
                                            <td><span>{:long2ip($vo['last_login_ip'])}</span></td>
                                            <td>{$vo['status']==1?'正常':'禁用'}</td>
                                            
                                     
                                        <neq name="vo.uid" value='1'>
                                         
        
                                            <td><eq name="vo.status" value="1">
                                                <a href="{:U('Users/changeStatus?method=forbidUser&id='.$vo['uid'])}" class="btn  btn-warning btn-xs common_href_comfirm" titles="您将'{$vo['status']==1?'禁用':'启用'}'本条记录?" content="确认{$vo['status']==1?'禁用':'启用'}">禁用</a>
                                        <else/>
                                        <a href="{:U('Users/changeStatus?method=resumeUser&id='.$vo['uid'])}" class="btn  btn-warning btn-xs common_href_comfirm" titles="您将'{$vo['status']==1?'禁用':'启用'}'本条记录?" content="确认{$vo['status']==1?'禁用':'启用'}">启用</a>
                                        </eq>
                                        <a href="{:U('AuthGroup/group?uid='.$vo['uid'])}" class="btn btn-info btn-xs authorize">授权</a>
                                         <a href="{:U('Users/edit?uid='.$vo['uid'])}" class="btn btn-info btn-xs authorize">编辑</a>
                                        <a href="{:U('Users/changeStatus?method=deleteUser&id='.$vo['uid'])}" class="btn btn-danger btn-xs  del_common_tr">删除</a>
                                        </td>
                                        <else />
                                        <td><a href="{:U('Users/edit?uid='.$vo['uid'])}" class="btn btn-info btn-xs authorize">编辑</a></td>
                                       </neq>
                                        
                                        
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </div>
                        </form>


                        <nav>
                            <ul class="pagination">
                                {$_page}
                            </ul>
                        </nav>          
                    </div>    
                </div>   
            </div>


         



        </div>
    </div>
</div>
</block>
<block name="script">
    <script src="__STATIC__/iCheck/icheck.min.js"></script>
</block>